package top.gytf.unifiedcall.support.producer;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import top.gytf.unifiedcall.model.detail.UnifiedCallPackageDetail;
import top.gytf.unifiedcall.support.producer.constant.UnifiedCallProducerConstants;

/**
 * 统一调用Producer模块的配置
 */
@Data
@ConfigurationProperties(prefix = UnifiedCallProducerConstants.PREFIX)
public class UnifiedCallProducerProperties {
    /**
     * 代表本模块所实现提供的包
     * @see UnifiedCallPackageDetail#getName()
     */
    @Value("${spring.application.name}")
    private String activePackage;
}
